#!/bin/bash

WKSPCDIR=$HOME/Dropbox/workspace
RDDIR=$WKSPCDIR/programas/C/rdmaxclique
BINDIR=$RDDIR/bin
INSTDIR=$WKSPCDIR/instancias/pargo-instances
CLQDIR=$INSTDIR/clique
NBITS=$(getconf LONG_BIT)

rm rdmaxclique$NBITS-max.out
for DIMFILE in gen200_p0.9_55.clq p_hat1000-2.clq sanr200_0.9.clq sanr400_0.5.clq sanr400_0.7.clq brock200_1.clq brock200_2.clq brock200_4.clq brock400_2.clq brock400_4.clq c-fat500-10.clq hamming8-4.clq keller4.clq MANN_a27.clq MANN_a45.clq p_hat300-1.clq p_hat300-2.clq p_hat300-3.clq p_hat700-1.clq p_hat700-2.clq p_hat700-3.clq san200_0.7_2.clq san200_0.9_1.clq san200_0.9_2.clq san200_0.9_3.clq sanr200_0.7.clq brock800_1.clq brock800_2.clq brock800_3.clq brock800_4.clq p_hat1000-1.clq p_hat1000-2.clq p_hat1500-1.clq DSJC1000.5.clq brock200_3.clq brock400_1.clq brock400_3.clq c-fat500-5.clq C125.9.clq C250.9.clq DSJC500.5.clq gen200_p0.9_44.clq san400_0.9_1.clq  
do
	for I in 1 2 # 4
	do
		for O in 2 3 # 1
		do
			echo $BINDIR/rdmaxclique$NBITS rdmaxclique$NBITS.out $CLQDIR/dimacs/$DIMFILE $I $O $CLQDIR/dimacs/maxclq.txt
			$BINDIR/rdmaxclique$NBITS rdmaxclique$NBITS.out $CLQDIR/dimacs/$DIMFILE $I $O $CLQDIR/dimacs/maxclq.txt
		done
	done
done

#for RANDDIR in 300_65 300_70 300_80 500_50 500_60 500_65 500_70 1000_10 1000_20 1000_30 1000_40 1000_50 5000_10 5000_20 5000_30 # 10000_10 15000_10 200_70 200_80 200_90 200_95 200_98 300_90 300_95 300_98
#do
#	for J in 1 2 3 4 5
#	do
#		for I in 1 2 # 4
#		do
#			for O in 2 3 # 1
#			do
#				echo $BINDIR/rdmaxclique$NBITS rdmaxclique$NBITS.out $CLQDIR/random/$RANDDIR/g$J.clq $I $O
#				$BINDIR/rdmaxclique$NBITS rdmaxclique$NBITS.out $CLQDIR/random/$RANDDIR/g$J.clq $I $O
#			done
#		done
#	done
#done
